/*
 * @Description: 
 * @Author: 闫宇韬(18064986)
 * @Date: 2020-11-27 16:12:51
 * @LastEditTime: 2020-11-27 17:31:55
 * @LastEditors: 闫宇韬(18064986)
 */
import React from "react";
import {HashRouter as Router,Route,Link} from "react-router-dom";

import Index from '../views/Index'
import List from '../views/List'


function AppRouter(){
    return (
        <Router>
            <ul>
                <li><Link to="/">首页</Link></li>
                <li><Link to="/list/3">列表</Link></li>
            </ul>
            <Route path="/" exact component={Index}/>
            <Route path="/list/:id" component={List} />
        </Router>
    )
}

export default AppRouter;